package top.chmin.project.cloud.sys.select.info;

import java.util.List;
import top.chmin.project.cloud.common.Page;
import org.springframework.web.bind.annotation.RestController;
import jakarta.annotation.Resource;



/**
 * chmin
 * 2024-01-26 14:02:25
 * cloud-code
 */
@RestController
public class SelectInfoController implements
/* append $controllerSelectOptionRestAppender$ */
        SelectInfoSaveRest,
        SelectInfoSelectRest,
        SelectInfoUpdateRest,
        SelectInfoDeleteRest,
        SelectInfoPageRest {

    @Resource
    private SelectInfoService selectInfoService;

    @Override
    public int save(SelectInfoSaveRest.P p) {
        return selectInfoService.save(p);
    }

    @Override
    public SelectInfoSelectRest.R select(SelectInfoSelectRest.P p) {
        return selectInfoService.select(p);
    }

    @Override
    public int update(SelectInfoUpdateRest.P p) {
        return selectInfoService.update(p);
    }

    @Override
    public int delete(SelectInfoDeleteRest.P p) {
        return selectInfoService.delete(p);
    }

    @Override
    public Page<SelectInfoPageRest.R> page(SelectInfoPageRest.P p) {
        return selectInfoService.page(p);
    }
    /* append $controllerSelectOptionMethodAppender$ */
}
